import {
    createSlice,
    configureStore,
} from "@reduxjs/toolkit";


const numSlice = createSlice({
    name:"num",
    initialState:{
        a:1,
        b:2
    }
});

const mySlice = createSlice({
    name:"my",
    initialState :{
        userName:"zhangsan",
        age:12
    }
});


const store = configureStore({
    reducer:{
        num:numSlice.reducer,
        my:mySlice.reducer
    }
})
const state = store.getState();
console.log(state);